package com.qiangqiang.exception;

import com.qiangqiang.enums.DormitoryEnum;
import lombok.Getter;

/**
 * Created by q on 2018/2/5.
 */
@Getter
public class DormitoryException extends RuntimeException {
    private Integer code;

    public DormitoryException(DormitoryEnum dormitoryEnum) {
        super(dormitoryEnum.getMessage());
        this.code = dormitoryEnum.getCode();
    }
}
